<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>画板</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.bootcss.com/FileSaver.js/1.3.8/FileSaver.min.js"></script>

</head>

<body>
    <div class="h1">画板</div>
    <canvas id="canvas">

    </canvas>
    <div class="button">
        <button class="niceButton2" onclick="exportCanvasAsPNG('canvas','picture')">下载</button>
    </div>
    <script src="main.js"></script>
</body>

</html>